package com.zxy.controller;

import com.zxy.feignclients.ProductClients;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Zxy
 * @description:
 * @date: 2021-08-07 15:26
 */
@RestController
public class ZipkinController {

    private static final Logger log = LoggerFactory.getLogger(ZipkinController.class);

    @Autowired
    private ProductClients productClients;

    @GetMapping("/consumer/zipkin")
    public String testZipkin(){
        log.info("zipkin服务调用product服务...");
        return productClients.product(21);
    }
}
